package com.soento.sample.ssm.bean.req;

import com.soento.core.lang.BaseObject;
import com.soento.core.validator.constraints.NotDate;
import com.soento.core.validator.constraints.NotInValues;
import com.soento.core.validator.constraints.NotDecimal;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;

@Setter
@Getter
public class TestReq extends BaseObject {
    @NotBlank(message = "V0001")
    private String name;
    @NotDate
    private String date;
    @NotDecimal
    private String number;
    @NotInValues(values = {"1", "2"})
    private String type;

}
